package com.example.webdome.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.webdome.pojo.LoginRequest;
import com.example.webdome.pojo.Result;
import com.example.webdome.pojo.User;

import javax.servlet.http.HttpServletResponse;

public interface UserService extends IService<User> {

    Result login(LoginRequest loginRequest, HttpServletResponse response);

    Result findPassWord(String email,User user,String code);

    Result tokenCount();
    Result outLogin(String token,HttpServletResponse response);

    Result register(User user,String code);

    User getByEmail(String email);
}
